/*
 * Copyright (c) 2015 www.smarthome.com All rights reserved. 本软件源代码版权归----所有,未经许可不得任意复制与传播.
 */
package com.smarthome.base.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.smarthome.base.dao.ShUserRoleSnapDao;
import com.smarthome.base.dao.base.BaseDao;
import com.smarthome.base.service.ShUserRoleSnapService;
import com.smarthome.base.service.base.BaseServiceImpl;
import com.smarthome.domain.bean.ShUserRoleSnap;

/**
 * ShUserRoleSnapService 实现类
 * @author KongXiangyu
 * @since 2015-09-07
 */
@Service("shUserRoleSnapService")
public class ShUserRoleSnapServiceImpl extends BaseServiceImpl<ShUserRoleSnap, Long> implements ShUserRoleSnapService {

    @Resource(name="shUserRoleSnapDao")
    private ShUserRoleSnapDao shUserRoleSnapDao;

    public BaseDao<ShUserRoleSnap, Long> getDao() {
        return shUserRoleSnapDao;
    }

	@Override
	public int deleteByUserId(Long ... userId) {
		
		return shUserRoleSnapDao.deleteByUserId(userId);
	}

	@Override
	public List<ShUserRoleSnap> queryUserRoleByUserId(Long... userId) {
		
		return shUserRoleSnapDao.selectUserRoleListByUserId(userId);
	}

}